package com.ecoolex.chinadutyfree.retailer.core.mapper;

import com.ecoolex.chinadutyfree.retailer.entity.DirectMailGoodsOrder;
import com.ecoolex.chinadutyfree.retailer.entity.DirectMailGoodsOrderExample;
import com.ecoolex.framework.common.annotation.Description;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.springframework.lang.NonNull;

public interface DirectMailGoodsOrderMapper {
    long countByExample(DirectMailGoodsOrderExample example);

    int deleteByExample(DirectMailGoodsOrderExample example);

    int deleteByPrimaryKey(Integer orderId);

    int insert(DirectMailGoodsOrder record);

    int insertSelective(@Param("record") DirectMailGoodsOrder record, @Param("selective") DirectMailGoodsOrder.Column ... selective);

    DirectMailGoodsOrder selectOneByExample(DirectMailGoodsOrderExample example);

    List<DirectMailGoodsOrder> selectByExample(DirectMailGoodsOrderExample example);

    DirectMailGoodsOrder selectByPrimaryKey(Integer orderId);

    DirectMailGoodsOrder selectByPrimaryKeyWithLogicalDelete(@Param("orderId") Integer orderId, @Param("andLogicalDeleted") boolean andLogicalDeleted);

    int updateByExampleSelective(@Param("record") DirectMailGoodsOrder record, @Param("example") DirectMailGoodsOrderExample example, @Param("selective") DirectMailGoodsOrder.Column ... selective);

    int updateByExample(@Param("record") DirectMailGoodsOrder record, @Param("example") DirectMailGoodsOrderExample example);

    int updateByPrimaryKeySelective(@Param("record") DirectMailGoodsOrder record, @Param("selective") DirectMailGoodsOrder.Column ... selective);

    int updateByPrimaryKey(DirectMailGoodsOrder record);

    int batchInsert(@Param("list") List<DirectMailGoodsOrder> list);

    int batchInsertSelective(@Param("list") List<DirectMailGoodsOrder> list, @Param("selective") DirectMailGoodsOrder.Column ... selective);

    int logicalDeleteByExample(@Param("example") DirectMailGoodsOrderExample example);

    int logicalDeleteByPrimaryKey(Integer orderId);
}